package com.cyx.exam.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试记录
 * </p>
 *
 * @author cyx
 * @since 2021-03-09
 */
@Data
@Accessors(chain = true)
  @EqualsAndHashCode(callSuper = false)
    public class UserExam implements Serializable {

    private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 用户名字
     */
      private String name;

      /**
     * 考试ID
     */
      private Integer examId;


      /**
     * 分数
     */
      private Integer score;


      /**
     * 创建时间
     */
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      /**
     * 更新时间
     */
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;


}
